var input = document.querySelectorAll('input')
var btn = document.querySelector('button')
btn.onclick = ()=>{
    axios.post('/api/login',{phone:input[0].value,pass:input[1].value}).then((res)=>{
        console.log(res);
        alert('登陆成功')
        location.href = '../html/首页.html'
    })
}